Try Wayland before X11
authorMatthias Clasen <mclasen@redhat.com>
Sat, 10 Aug 2013 00:50:57 +0000 (20:50 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 10 Aug 2013 00:50:57 +0000 (20:50 -0400)
When both the Wayland and the X11 backends are built, prefer
Wayland over X11 in the absence of other information.

https://bugzilla.gnome.org/show_bug.cgi?id=705498

gdk/gdkdisplaymanager.c

index 94f857eb52f255e866c7b6246ceba0a28e2640ee..075f507b04bce1bebc8da148cd65370a0fe9eba6 100644 (file)
@@ -267,12 +267,12 @@ static GdkBackend gdk_backends[] = {
 #ifdef GDK_WINDOWING_WIN32
   { "win32",    _gdk_win32_display_open },
 #endif
-#ifdef GDK_WINDOWING_X11
-  { "x11",      _gdk_x11_display_open },
-#endif
 #ifdef GDK_WINDOWING_WAYLAND
   { "wayland",  _gdk_wayland_display_open },
 #endif
+#ifdef GDK_WINDOWING_X11
+  { "x11",      _gdk_x11_display_open },
+#endif
 #ifdef GDK_WINDOWING_BROADWAY
   { "broadway", _gdk_broadway_display_open },
 #endif